package chances.system.operator.repo;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import chances.system.operator.entity.Menu;

public interface MenuRepository extends JpaRepository<Menu,Long> {

	public List<Menu> findMenuByStatus(Integer status);
	
	@Query("from Menu where status = 0 order by menu_order")
	public List<Menu> findAvaliableMenu();
	
	public List<Menu> findByMenuIdIn(List<Long> menuIds);
	
}
